package com.star.rpc.loadbalancer;

import com.star.rpc.modal.ServiceMetaInfo;

import java.util.List;
import java.util.Map;

/**
 * packageName com.star.rpc.loadbalancer
 *
 * @author zerostart
 * @className LoadBalancer
 * @date 2024/12/7
 * @description 负载均衡器
 */
public interface LoadBalancer {


    /**
     * 选择服务调用
     * @param requestParams  请求参数
     * @param serviceMetaInfoList 可用服务列表
     * @return
     */

    ServiceMetaInfo select(Map<String, Object> requestParams, List<ServiceMetaInfo> serviceMetaInfoList);
}
